//
//  UnMenuTextView.m
//  GodCoin
//
//  Created by Bishen on 2018/10/9.
//  Copyright © 2018年 xiaohan. All rights reserved.
//

#import "UnMenuTextView.h"

@implementation UnMenuTextView
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender {
    //    if (action == @selector(paste:))//禁止粘贴
    //        return NO;
    //    if (action == @selector(select:))// 禁止选择
    //        return NO;
    //    if (action == @selector(selectAll:))// 禁止全选
    //        return NO;
    //    return [super canPerformAction:action withSender:sender];
    UIMenuController *menuController = [UIMenuController sharedMenuController];
    if (menuController)
    {
        [UIMenuController sharedMenuController].menuVisible = NO;
    }
    return NO;
}

@end
